package com.roger.myHome.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("tb_financial")
public class TbFinancial implements Serializable {
    @TableField(value = "id")
    private Long id;

    @TableField(value = "product_name")
    private String productName;

    @TableField(value = "product_no")
    private String productNo;

    @TableField(value = "product_type")
    private String productType;

    @TableField(value = "interest")
    private Float interest;

    @TableField(value = "deadline")
    private Integer deadline;

    @TableField(value = "redemption_type")
    private String redemptionType;

    @TableField(value = "buy_money")
    private BigDecimal buyMoney;

    @TableField(value = "buy_date")
    private String buyDate;

    @TableField(value = "channel")
    private String channel;

    @TableField(value = "transfer_in_bank")
    private String transferInBank;

    @TableField(value = "transfer_out_bank")
    private String transferOutBank;

    @TableField(value = "risk_level")
    private String riskLevel;

    @TableField(value = "remark")
    private String remark;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "redemption_date")
    private String redemptionDate;

    @TableField(value = "income")
    private BigDecimal income;

    @TableField(value = "keep_days")
    private Integer keepDays;

    @TableField(value = "state")
    private String state;

    @TableField(value = "profit")
    private BigDecimal profit;

}
